package poj;

import java.util.Scanner;

public class P1298
{
	public static final String START_STRING = "START";
	public static final String END_STRING = "END";
	public static final String ENDOFINPUT = "ENDOFINPUT";

	public static void main(String[] args)
	{
		String input;
		Scanner in = new Scanner(System.in);
		input = in.nextLine();
		while (true)
		{
			if (input.equals(START_STRING) || input.equals(END_STRING))
				;
			else if (input.equals(ENDOFINPUT))
				break;
			else
			{
				char a[] = input.toCharArray();
				for (int i = 0; i < input.length(); i++)
				{
					if (a[i] <= 'Z' && a[i] >= 'A')
					{
						if (a[i] <= 'E')
							a[i] = (char) (a[i] - 5 + 26);
						else
							a[i] = (char) (a[i] - 5);
					}
				}
				System.out.println(a);
			}
			input = in.nextLine();
		}
	}

}
